class CreateFightersMatchesJointTable < ActiveRecord::Migration
  def change
    create_table :fighters_matches, id: false do |t|
      t.references :fighter, :match
      
      t.timestamps
    end

    add_index :fighters_matches, [:fighter_id, :match_id]
  end
end
